﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NHibernateLibrary.Entities" assembly="NHibernateLibrary">

  <class name="Recruitment" table="RECRUITMENT">

    <composite-id>
      <key-property name="Id" column="Id" type="Int64">
        <column name="Id" unique="true" not-null="true"/>
      </key-property>
      <key-many-to-one name="CompanyDesignationId" class="CompanyDesignation" >
        <column name="COMPANYDESIGNATIONID" />
        <column name="CompanyId" />
        <column name="DESIGNATION" />
      </key-many-to-one>
    </composite-id>

    <property name="Year" column="YEAR" not-null="true" type="Int32"></property>
    <property name="NoOfHires" column="NOOFHIRES" type="Int32"></property>

    </class>

</hibernate-mapping>